﻿ <%@page import="com.hh.bss.util.StringHelper" %>
<%
  String cvId=request.getParameter("cvId");  
  
  if (StringHelper.isEmpty(cvId)) cvId="0";
  

%>   
 

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="人才简历薪水">  
    <meta name="description" content="人才简历薪水">  
    <title>人才简历薪水管理</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head>  
<body>  
    
      
    
    <!-- edit form窗体（开始） -->  
    <div class="easyui-panel"  style="width:400px">
        <form id="fm" method="post" novalidate>  
        	  	  	 <input type="hidden" value="<%=cvId%>" name="cvId" >         	  	  	 
	        		     <div class="fitem">  
                     <label style="width:100px">薪资单位<font color="red">*</font>:</label>                                                                                   
                     <input class="easyui-combobox"  required="true" name="currency" style="width:200px;"  data-options="data:__getConstantCategory('MoneyType'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">当前年薪范围:</label>                       
                     <input class="easyui-combobox" name="currentSalary" style="width:200px;"  data-options="data:__getCategory('SALARY'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">期望年薪范围:</label>                                                              
                     <input class="easyui-combobox" name="expectSalary" style="width:200px;"  data-options="data:__getCategory('SALARY'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">详细收入录入:</label>                                                                     
                     <textarea name="bonusList"  style="height:50px;" ></textarea>                    
                   </div> 	        		     	        		     		     
	        		     <div class="fitem">  
                     <label style="width:100px">底薪:</label>                                            
                     <input name="basicSalary" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">补贴:</label>                                            
                     <input name="allowance" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">奖金:</label>                                            
                     <input name="bonus" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">费用报销:</label>                                            
                     <input name="reimbursement" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">补充性福利:</label>                                                                 
                     <textarea name="welfare"  style="height:50px;" ></textarea>                     
                   </div> 
        </form>  
        <div id="dlg-buttons" style="text-align:center;padding:5px">  
           <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="save()">Save</a>  
           
        </div> 
    </div>  
    <!-- edit form窗体（结束） -->  
     
    <script type="text/javascript">  
        var url='/talent/cvSalary/save.do';   
        
        function save(){          	   
        	  if (!$('#fm').form('validate')) return; 
            $('#fm').form('submit',{  
                url: url,  
                onSubmit: function(){  
                    return $(this).form('validate');  
                },  
                success: function(result){  
                    var result = eval('('+result+')');                      
                    if (result.success == true){  
                        $.messager.alert('信息',result.msg,'info');  
                        $('#dlg').dialog('close');      // close the dialog  
                        $('#dg').datagrid('reload');    // reload the user data  
                    } else {  
                        $.messager.alert('错误',result.msg,'error');
                    }  
                }  
            });  
        }  
        
       
        $('#fm').form('load','/talent/cvSalary/get.do?cvId='+<%=cvId%>); 
        
        
    </script>  
     
     

     
     
     
</body>  
</html>